package com.examples.gateway.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.examples.core.mybatis.base.BaseSafeEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 菜单和权限关联表
 * @author Dai YaLu
 */
@Data
@TableName("system_menu_permission")
@EqualsAndHashCode(callSuper = true)
public class SystemMenuPermission extends BaseSafeEntity {

    /**
     * 自增主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 菜单ID
     */
    private Long menuId;

    /**
     * 权限ID
     */
    private Long permId;

}
